from django.conf.urls import url
from .views import *
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    #/users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/count/$', RegisterUserNameView.as_view(),name='usernamecount'),
    url(r'^phones/(?P<mobile>1[345789]\d{9})/count/$', RegisterPhoneCountAPIView.as_view(),name='phonecount'),
    url(r'^', RegisterCreateUserView.as_view(), name='user'),
    url(r'auths/$', obtain_jwt_token, name='auths'),
]